<!doctype html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>Document</title>
	 <link rel="stylesheet" href="__PUBLIC__/css/index.css">
	<script src="__PUBLIC__/js/jquery-1.7.2.min.js"></script>
	<script src="__PUBLIC__/js/js.js"></script>
	 <script>
	 	$(".active").live({
	 		'mouseover':function(){
	 			$(this).find('td').css({'color':'red'});
	 		},
	 		'mouseout':function(){
	 			$(this).find('td').css({'color':'green'});
	 		}
	 	})

	 </script>
</head>
<body>
	<div class="wrap">
		<div class="menu_list">
			<ul>
				<li>
					<a href="" class="action" >商品列表</a>
				</li>
				<li>
					<a href="{|U:category}" >添加商品</a>
				</li>
			</ul>
		</div>
		<table class="table1">
			<thead>
				<tr>
					<td class='w50'>gid</td>
					<td class="w400">商品名</td>
					<td  class='w120'>栏目</td>
					<td class="w80">图片</td>
					<td class="w180">操作</td>
				</tr>
			</thead>
			<list from="$data" name="d">
			    	<tr class='active'>
					<td style="color:green;font-size:14px;font-weight: 700">{$d.gid}</td>
					<td style="color:green;font-size:14px;font-weight: 700">{$d.gname}</td>
					<td style="color:green;font-size:14px;font-weight: 700">{$d.cname}</td>
					<td>
						<img src="__ROOT__/{$d.index_pic}" alt="" class="w50 h50">
					</td>
					<td>
						<a href="{|U:edit,array('gid'=>$d[gid],'cid'=>$d[cid])}" class="btn1">编辑</a>
						<a href="{|U:del,array('gid'=>$d[gid])}" class="btn1">删除</a>
					</td>
				</tr>
			</list>
			<tr>
					<td colspan='5' align="center" style="color:green">{$page}</td>
					
			</tr>
		</table>
	</div>
</body>
</html>